import {createConnections} from "typeorm";
import { CouponInfo } from '../moudle/coupon/coupon_info/entities/coupon_info.entity';

const connections =  createConnections([{
  "name":'coupon',
  "type": "mysql",
  "host": "127.0.0.1",
  "port": 3306,
  "username": "root",
  "password": "123456",
  "database": "daijia_coupon",
  "entities": [CouponInfo],
  "synchronize": true,
  // "connectTimeout":200,
  }, {
  "name":'user',
  "type": "mysql",
  "host": "127.0.0.1",
  "port": 3306,
  "username": "root",
  "password": "123456",
  "database": "daijia_system",
  "entities": [CouponInfo],
  "synchronize": true,
}]);